/**
 * 
 */
package com.feonix.designPattern.TemplateMethod.sample1;

import com.sun.org.apache.xerces.internal.util.SynchronizedSymbolTable;

/**
 * @CopyRight (c)1993-2017
 * @Project common_practice
 * @Comments 请输入该类的描述
 * @NameSpace com.feonix.designPattern.TemplateMethod.sample1
 * @Author Feonixzw
 * @CreateDate 2018年1月25日
 */
public class CharDisplay extends AbstractDisplay {

	private char ch;

	public CharDisplay(char ch) {
		this.ch = ch;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.feonix.designPattern.TemplateMethod.sample1.AbstractDisplay#open()
	 */
	@Override
	void open() {
		System.out.print("<<");
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.feonix.designPattern.TemplateMethod.sample1.AbstractDisplay#print()
	 */
	@Override
	void print() {
		System.out.print(this.ch);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.feonix.designPattern.TemplateMethod.sample1.AbstractDisplay#close()
	 */
	@Override
	void close() {
		System.out.print(">>");
	}

}
